import request from '@/utils/request'

// 查询设备状态管控列表
export function listDeviceStatusControl(query) {
  return request({
    url: '/ys/deviceStatusControl/list',
    method: 'get',
    params: query
  })
}

// 查询设备状态管控详细
export function getDeviceStatusControl(id) {
  return request({
    url: '/ys/deviceStatusControl/' + id,
    method: 'get'
  })
}

// 新增设备状态管控
export function addDeviceStatusControl(data) {
  return request({
    url: '/ys/deviceStatusControl',
    method: 'post',
    data: data
  })
}

// 修改设备状态管控
export function updateDeviceStatusControl(data) {
  return request({
    url: '/ys/deviceStatusControl',
    method: 'put',
    data: data
  })
}

// 删除设备状态管控
export function delDeviceStatusControl(id) {
  return request({
    url: '/ys/deviceStatusControl/' + id,
    method: 'delete'
  })
}
